package club.baibin0558.jstudy.web.config;

import com.github.tobato.fastdfs.FdfsClientConfig;
import com.github.tobato.fastdfs.service.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

@Configuration
@Import(FdfsClientConfig.class)
// 解决jmx重复注册bean的问题
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class ComponetImport {
//    @Bean
//    public TrackerClient trackerClient() {
//        DefaultTrackerClient defaultTrackerClient = new DefaultTrackerClient();
//        return defaultTrackerClient;
//    }
//    @Bean
//    public GenerateStorageClient generateStorageClient () {
//        return new DefaultGenerateStorageClient();
//    }
//    @Bean
//    public FastFileStorageClient fastFileStorageClient () {
//        return new DefaultFastFileStorageClient();
//    }
//    @Bean
//    public AppendFileStorageClient  appendFileStorageClient () {
//        return new DefaultAppendFileStorageClient ();
//    }
}